﻿CREATE PROCEDURE s_ConvertToBinary 
	@y VARCHAR(512),
	@x varBINARY(512) = NULL OUTPUT
AS

DECLARE @sql NVARCHAR(512)
SET @sql = 'SELECT @x = ' + @y
EXEC sp_executesql @sql,N'@x varBINARY(512) OUTPUT',@x OUTPUT
